(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0))), k(n(s(x), s(y)), s(s(0))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0, y) → 0
n(x, 0) → 0
n(s(x), s(y)) → s(n(x, y))
m(0, y) → y
m(x, 0) → x
m(s(x), s(y)) → s(m(x, y))
k(0, s(y)) → 0
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0, y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0) → true
f(s(x)) → h(x)
h(0) → false
h(s(x)) → f(x)
gt(s(x), 0) → true
gt(0, y) → false
gt(s(x), s(y)) → gt(x, y)

Rewrite Strategy: FULL

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

S is empty.
Rewrite Strategy: FULL

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
g, f, k, minus, m, n, p, gt, h

They will be analysed ascendingly in the following order:
f < g
k < g
minus < g
m < g
n < g
f = h
minus < k
gt < p

(6) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
minus, g, f, k, m, n, p, gt, h

They will be analysed ascendingly in the following order:
f < g
k < g
minus < g
m < g
n < g
f = h
minus < k
gt < p

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

Induction Base:
minus(gen_s:0':true:false2_0(0), gen_s:0':true:false2_0(0)) →RΩ(1)
gen_s:0':true:false2_0(0)

Induction Step:
minus(gen_s:0':true:false2_0(+(n4_0, 1)), gen_s:0':true:false2_0(+(n4_0, 1))) →RΩ(1)
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) →IH
gen_s:0':true:false2_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
k, g, f, m, n, p, gt, h

They will be analysed ascendingly in the following order:
f < g
k < g
m < g
n < g
f = h
gt < p

(10) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol k.

(11) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
m, g, f, n, p, gt, h

They will be analysed ascendingly in the following order:
f < g
m < g
n < g
f = h
gt < p

(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)

Induction Base:
m(gen_s:0':true:false2_0(0), gen_s:0':true:false2_0(0)) →RΩ(1)
gen_s:0':true:false2_0(0)

Induction Step:
m(gen_s:0':true:false2_0(+(n439_0, 1)), gen_s:0':true:false2_0(+(n439_0, 1))) →RΩ(1)
s(m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0))) →IH
s(gen_s:0':true:false2_0(c440_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(13) Complex Obligation (BEST)

(14) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
n, g, f, p, gt, h

They will be analysed ascendingly in the following order:
f < g
n < g
f = h
gt < p

(15) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)

Induction Base:
n(gen_s:0':true:false2_0(0), gen_s:0':true:false2_0(0)) →RΩ(1)
0'

Induction Step:
n(gen_s:0':true:false2_0(+(n989_0, 1)), gen_s:0':true:false2_0(+(n989_0, 1))) →RΩ(1)
s(n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0))) →IH
s(gen_s:0':true:false2_0(c990_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(16) Complex Obligation (BEST)

(17) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
gt, g, f, p, h

They will be analysed ascendingly in the following order:
f < g
f = h
gt < p

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)

Induction Base:
gt(gen_s:0':true:false2_0(+(1, 0)), gen_s:0':true:false2_0(0)) →RΩ(1)
true

Induction Step:
gt(gen_s:0':true:false2_0(+(1, +(n1437_0, 1))), gen_s:0':true:false2_0(+(n1437_0, 1))) →RΩ(1)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) →IH
true

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(19) Complex Obligation (BEST)

(20) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
p, g, f, h

They will be analysed ascendingly in the following order:
f < g
f = h

(21) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol p.

(22) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
h, g, f

They will be analysed ascendingly in the following order:
f < g
f = h

(23) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
h(gen_s:0':true:false2_0(*(2, n2141_0))) → false, rt ∈ Ω(1 + n21410)

Induction Base:
h(gen_s:0':true:false2_0(*(2, 0))) →RΩ(1)
false

Induction Step:
h(gen_s:0':true:false2_0(*(2, +(n2141_0, 1)))) →RΩ(1)
f(gen_s:0':true:false2_0(+(1, *(2, n2141_0)))) →RΩ(1)
h(gen_s:0':true:false2_0(*(2, n2141_0))) →IH
false

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(24) Complex Obligation (BEST)

(25) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)
h(gen_s:0':true:false2_0(*(2, n2141_0))) → false, rt ∈ Ω(1 + n21410)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
f, g

They will be analysed ascendingly in the following order:
f < g
f = h

(26) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol f.

(27) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)
h(gen_s:0':true:false2_0(*(2, n2141_0))) → false, rt ∈ Ω(1 + n21410)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

The following defined symbols remain to be analysed:
g

(28) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol g.

(29) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)
h(gen_s:0':true:false2_0(*(2, n2141_0))) → false, rt ∈ Ω(1 + n21410)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(30) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(31) BOUNDS(n^1, INF)

(32) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)
h(gen_s:0':true:false2_0(*(2, n2141_0))) → false, rt ∈ Ω(1 + n21410)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(33) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(34) BOUNDS(n^1, INF)

(35) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)
gt(gen_s:0':true:false2_0(+(1, n1437_0)), gen_s:0':true:false2_0(n1437_0)) → true, rt ∈ Ω(1 + n14370)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(36) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(37) BOUNDS(n^1, INF)

(38) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)
n(gen_s:0':true:false2_0(n989_0), gen_s:0':true:false2_0(n989_0)) → gen_s:0':true:false2_0(n989_0), rt ∈ Ω(1 + n9890)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(39) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(40) BOUNDS(n^1, INF)

(41) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)
m(gen_s:0':true:false2_0(n439_0), gen_s:0':true:false2_0(n439_0)) → gen_s:0':true:false2_0(n439_0), rt ∈ Ω(1 + n4390)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(42) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(43) BOUNDS(n^1, INF)

(44) Obligation:

TRS:
Rules:
g(s(x), s(y)) → if(and(f(s(x)), f(s(y))), t(g(k(minus(m(x, y), n(x, y)), s(s(0'))), k(n(s(x), s(y)), s(s(0'))))), g(minus(m(x, y), n(x, y)), n(s(x), s(y))))
n(0', y) → 0'
n(x, 0') → 0'
n(s(x), s(y)) → s(n(x, y))
m(0', y) → y
m(x, 0') → x
m(s(x), s(y)) → s(m(x, y))
k(0', s(y)) → 0'
k(s(x), s(y)) → s(k(minus(x, y), s(y)))
t(x) → p(x, x)
p(s(x), s(y)) → s(s(p(if(gt(x, y), x, y), if(not(gt(x, y)), id(x), id(y)))))
p(s(x), x) → p(if(gt(x, x), id(x), id(x)), s(x))
p(0', y) → y
p(id(x), s(y)) → s(p(x, if(gt(s(y), y), y, s(y))))
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
id(x) → x
if(true, x, y) → x
if(false, x, y) → y
not(x) → if(x, false, true)
and(x, false) → false
and(true, true) → true
f(0') → true
f(s(x)) → h(x)
h(0') → false
h(s(x)) → f(x)
gt(s(x), 0') → true
gt(0', y) → false
gt(s(x), s(y)) → gt(x, y)

Types:
g :: s:0':true:false → s:0':true:false → s:0':true:false
s :: s:0':true:false → s:0':true:false
if :: s:0':true:false → s:0':true:false → s:0':true:false → s:0':true:false
and :: s:0':true:false → s:0':true:false → s:0':true:false
f :: s:0':true:false → s:0':true:false
t :: s:0':true:false → s:0':true:false
k :: s:0':true:false → s:0':true:false → s:0':true:false
minus :: s:0':true:false → s:0':true:false → s:0':true:false
m :: s:0':true:false → s:0':true:false → s:0':true:false
n :: s:0':true:false → s:0':true:false → s:0':true:false
0' :: s:0':true:false
p :: s:0':true:false → s:0':true:false → s:0':true:false
gt :: s:0':true:false → s:0':true:false → s:0':true:false
not :: s:0':true:false → s:0':true:false
id :: s:0':true:false → s:0':true:false
true :: s:0':true:false
false :: s:0':true:false
h :: s:0':true:false → s:0':true:false
hole_s:0':true:false1_0 :: s:0':true:false
gen_s:0':true:false2_0 :: Nat → s:0':true:false

Lemmas:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

Generator Equations:
gen_s:0':true:false2_0(0) ⇔ 0'
gen_s:0':true:false2_0(+(x, 1)) ⇔ s(gen_s:0':true:false2_0(x))

No more defined symbols left to analyse.

(45) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
minus(gen_s:0':true:false2_0(n4_0), gen_s:0':true:false2_0(n4_0)) → gen_s:0':true:false2_0(0), rt ∈ Ω(1 + n40)

(46) BOUNDS(n^1, INF)